<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" http-equiv="Content-Type" content="text/html">

    {% if title %}
        <title>{{ title }}</title>
    {% else %}
        <title>Default title</title>
    {% endif %}

</head>
<body>

<a href="{{ url_for('index') }}">Home</a>
{% if current_user.is_authenticated() %}
    <a href="{{ url_for('signout') }}">Sign out</a>
{% else %}
    <a href="{{ url_for('signin') }}">Sign in</a>
{% endif %}

{% for message in get_flash_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}

{% block content %}
{% endblock %}
</body>
</html>